{* Smarty *}
<div id="main_header">{t}{$command}{/t}: {t}{$option}{/t}</div>

<div class="box">
	<table cellspacing="0">
		<caption>{t}Add msgid/msgstr{/t}</caption>
		<tr>
			<th>{t}Add msgid/msgstr{/t}</th>
		</tr>
		<tr>
			{if isset($result)}
			<td class="success"><a class="success" href="/admin/config/languages/podb">{if isset($modify)}{t}po modified{/t}{else}{t}po added{/t}{/if}</a></td>
			{else}
			<td class="form">
				<form {$form_data.attributes}>
				<table class="form">
					<tr>
						<td class="form">{$form_data.msgid.label}</td><td class="form">{$form_data.msgid.html}</td>
					</tr>
					<tr>
						<td class="form">{$form_data.msgstr.label}</td><td class="form">{$form_data.msgstr.html}</td>
					</tr>
					<tr>
						<td colspan="2" class="right">{$form_data.btn_Submit.label}{$form_data.btn_Submit.html}</td>
					</tr>
					<tr>
					  <td colspan="2" class="center">{$form_data.requirednote}</td>
				  </tr>
				</table>
				</form>
			</td>
			{/if}
		</tr>
	</table>
</div>

<div class="box">
	<table cellspacing="0">
		<caption>{t}edit/modify master gettext po{/t}</caption>
		<tr>
			<th colspan="4">{t}podb{/t}</th>
		</tr>
		<tr>
			<th class="left" width="5%">id</th>
			<th class="left" width="30%">msgid</th>
		  <th class="left" width="50%">msgstr</th>
			<th>{t}edit{/t}</th>
		</tr>
		{foreach item=po from=$podb}
		<tr>
			<td class="left">{$po.id}</td>
			<td class="left">{$po.msgid}</td>
			<td class="left">{$po.msgstr}</td>
			<td>{html_image file="/themes/$template/images/edit.gif" border="0" href="/admin/config/languages/podb/`$po.id`"}</td>
		</tr>
		{/foreach}
	</table>
</div>